﻿<div class="tool-bar">
    <div class="sorting">
        Сортировать по <a href="#" data-sort-option="Email" data-sort-direction="<%= Direction == 0? 1: 0 %>"
            class="no-link <% if (Column == 'Email' && Direction == 0) {%>asc<%}%> <% if (Column == 'Email' && Direction == 1) {%>desc<%}%> <% if (Column != 'Email') {%>asc<%}%>">email
        </a>, 
        <a href="#" data-sort-option="DateOfSend" data-sort-direction="<%= Direction == 0? 1: 0 %>"
            class="no-link <% if (Column == 'DateOfSend' && Direction == 0) {%>asc<%}%> <% if (Column == 'DateOfSend' && Direction == 1) {%>desc<%}%> <% if (Column != 'DateOfSend') {%>asc<%}%>">дате отправки
        </a>
    </div>
</div>
<% if(Messages.length!=0) {%>
<ul class="user-listing">
</ul>
<%} else {%>
<p class="empty">У вас нет сообщений</p>
<%}%>